#top,
#bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 50%;
}

#top {
  top: 0;
}

#bottom {
  bottom: 0;
}